<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<c:set var="newLineFlag" value="0"></c:set>
<c:choose>
	<c:when test="${goodsSkuState==3}">
	   <%--
	   <p class="colorp00" style="font-size:12px;float:left;margin-right:20px;">
			${goodsPrice.priceClassName}：<em>￥<fmt:formatNumber value="${goodsPrice.price/100}" pattern="0.00" /></em>
	   </p>
	    --%>
	   <p class="colorp00" style="font-size:12px;">
			所需积分：${needPoints}
	   </p>
	</c:when>
	<c:otherwise>
		<c:if test="${goodsPriceList!=null&&fn:length(goodsPriceList)>0}"  >
			<c:forEach items="${goodsPriceList}" var="goodsPrice" varStatus="index">
				<c:choose>
					<c:when test="${index.index==0}">
						<p class="colorp00" style="font-size:12px; ${fn:length(goodsPriceList)>1?'text-decoration:line-through;':''}float:left;margin-right:20px;">
							${goodsPrice.priceClassName}：<em>￥<fmt:formatNumber value="${goodsPrice.price/100}" pattern="0.00" /></em>
					   </p>
					</c:when>
					<c:when test="${index.index==1}">
						<p class="colorp00" style="font-size:12px;">
							${goodsPrice.priceClassName}：<em>￥<fmt:formatNumber value="${goodsPrice.price/100}" pattern="0.00" /></em>
					   </p>
					</c:when>
					<c:otherwise>
						<c:if test="${newLineFlag==0}">
							<p class="colorp00" style="width:580px;font-size:14px;color:#4672d5;font-weight:bold;float:left;margin-right:20px;">
							<c:set var="newLineFlag" value="1"></c:set>
						</c:if>
							<em style="padding-right: 5px">${goodsPrice.priceClassName}：￥<fmt:formatNumber value="${goodsPrice.price/100}" pattern="0.00" /></em>
						<c:if test="${index.index==fn:length(goodsPriceList)-1}">
							</p>
						</c:if>
					</c:otherwise>
				</c:choose>
			</c:forEach>
		</c:if>
	</c:otherwise>
</c:choose>
